package com.gqr.springcloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
@Slf4j
public class SleuthBController {
    @Resource
    private RestTemplate restTemplate;

    @GetMapping("/traceB")
    public String traceA(){
        log.info("----------Trace B");
        return "traceB";
    }
}
